package c.x.jy.api;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.web.servlet.MultipartAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
@EnableAutoConfiguration(exclude = {MultipartAutoConfiguration.class} )  
@SpringBootApplication
@MapperScan("c.x.jy.service.dao")
@ComponentScan("c.x.jy.service.**,c.x.jy.api.**,c.x.jy.bean.event")
@EnableCaching  //开启缓存
public class JyApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(JyApplication.class, args);
          
    }
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(JyApplication.class);
    }

}  
 